package eteam.aps.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import eteam.aps.common.entity.ParentEntity;

/**
 * 参数信息
 *
 * @date 2022-11-28
 * @author WMT
 */
@TableName("ed_param_info")
public class ParamInfo extends ParentEntity {
	/**
	 * 参数来源 --0:字典
	 */
	public static final int FPARAMFROM_DICTIONARY = 0;
	/**
	 * 参数来源 --10:员工
	 */
	public static final int FPARAMFROM_USER = 10;
	/**
	 * 参数来源 --20:组织机构
	 */
	public static final int FPARAMFROM_ORG = 20;

	/**
	 * 参数编号 --唯一 not null
	 */
	@TableField(value = "FParamCode")
	private String fParamCode;
	/**
	 * 参数名称 --唯一 not null
	 */
	@TableField(value = "FParamName")
	private String fParamName;

	/**
	 * 参数来源【0字典；10员工；20组织机构】 not null
	 */
	@TableField(value = "FParamFrom")
	private int fParamFrom;

	/**
	 * 参数类型【1字符串；2整数；3小数；4日期】 not null
	 */
	@TableField(value = "FParamType")
	private int fParamType;

	/**
	 * 参数值ID --not null
	 * 字典id，来源于字典；userId，来源于员工；组织机构id。来源于组织机构
	 * @see #fParamFrom 
	 */
	@TableField(value = "FParamValueID")
	private String fParamValueID;

	/**
	 * 参数值 --not null
	 */
	@TableField(value = "FParamValue")
	private String fParamValue;

	/**
	 * 参数来源值的fId;字典 绑定ed_data_dict_category的fId，员工 绑定sp_user的fUserId，组织机构 绑定sp_org的fOrgId
	 */
	@TableField(value = "FParamFromId")
	private String fParamFromId;

	public String getfParamCode() {
		return fParamCode;
	}

	public void setfParamCode(String fParamCode) {
		this.fParamCode = fParamCode;
	}

	public String getfParamName() {
		return fParamName;
	}

	public void setfParamName(String fParamName) {
		this.fParamName = fParamName;
	}

	public int getfParamFrom() {
		return fParamFrom;
	}

	public void setfParamFrom(int fParamFrom) {
		this.fParamFrom = fParamFrom;
	}

	public int getfParamType() {
		return fParamType;
	}

	public void setfParamType(int fParamType) {
		this.fParamType = fParamType;
	}

	public String getfParamValueID() {
		return fParamValueID;
	}

	public void setfParamValueID(String fParamValueID) {
		this.fParamValueID = fParamValueID;
	}

	public String getfParamValue() {
		return fParamValue;
	}

	public void setfParamValue(String fParamValue) {
		this.fParamValue = fParamValue;
	}

	public String getfParamFromId() {
		return fParamFromId;
	}

	public void setfParamFromId(String fParamFromId) {
		this.fParamFromId = fParamFromId;
	}
}
